package com.tianyi.lib.model;

import java.util.List;

public class Result<T> {

    protected boolean status = true;
    protected String code;
    protected String msg;
    protected T data;
    private List<Error> errors;

    public Result() {
    }

    public Result(boolean status, String code, String msg, T data, List<Error> errors) {
        this.status = status;
        this.code = code;
        this.msg = msg;
        this.data = data;
        this.errors = errors;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public List<Error> getErrors() {
        return errors;
    }

    public void setErrors(List<Error> errors) {
        this.errors = errors;
    }
}
